<?php/*	PID 	Processo para comunicar estado de transaccoes recebidas	*/	# Defaults	$TransmissionResultCode = 1;	## Query Antigo		$TrsID = $TrnID;				if ($TransmissionResultCode == 1) {		$TransactionFTName = transaction_filenames($DatadirTransmitionOut,$TrnTime,$TrnID,$CorrCode,$CorrFName,$CorrExt);		include($TFTPATH_MODELS.$CorrDlm.'_'.$CorrExt.'_'.$CorrOb.'_'.$CorrVers.'.mex');			if (File_Output($DatadirTransmitionOut.$TransactionFTName,$QurTrn,$CNC)==true) {				$TransmissionResultCode = 2;				## if active ftp transact				if(isset($GETCOMMETH[1])){					## copia ficheiro para pasta ftp					if (!copy($DatadirTransmitionOut.$TransactionFTName, $GetSettings[1]['set_Valor'].'//'.$GETCOMMETH[1]['CorrAgente'].'//OUT//'.$TransactionFTName)) {					  $Exception_error = 'Error copying file.';					}				}			}		}